gtk4.git
5 years ago4.1.2
Matthias Clasen [Sun, 14 Mar 2021 23:13:10 +0000 (19:13 -0400)]
4.1.2

5 years agoUpdate release script
Matthias Clasen [Mon, 15 Mar 2021 01:35:44 +0000 (21:35 -0400)]
Update release script

With gi-docgen based docs, we can try to go back to
including the docs in the main release tarball.

5 years agoMerge branch 'menubar-accel' into 'master'
Matthias Clasen [Mon, 15 Mar 2021 01:27:45 +0000 (01:27 +0000)]
Merge branch 'menubar-accel' into 'master'

window: Add a way to disable F10 shortcut

Closes #3727

See merge request GNOME/gtk!3296

5 years agowindow: Add a way to disable F10 shortcut
Matthias Clasen [Sun, 14 Mar 2021 23:37:11 +0000 (19:37 -0400)]
window: Add a way to disable F10 shortcut

This is needed for terminal emulators.

Fixes: #3727
5 years agoMerge branch 'ngl-less-shaders' into 'master'
Matthias Clasen [Sun, 14 Mar 2021 21:04:37 +0000 (21:04 +0000)]
Merge branch 'ngl-less-shaders' into 'master'

Assorted ngl improvements

See merge request GNOME/gtk!3295

5 years agongl: Special-case css backgrounds
Matthias Clasen [Sun, 14 Mar 2021 04:30:18 +0000 (23:30 -0500)]
ngl: Special-case css backgrounds

Recognize a common pattern: A rounded clip with
a color node, followed by a border node, with the
same outline. This is what CSS backgrounds frequently
produce, and we can render it more efficiently with
a combined shader.

5 years agongl: Don't bother with uniform border nodes
Matthias Clasen [Sat, 13 Mar 2021 23:40:37 +0000 (18:40 -0500)]
ngl: Don't bother with uniform border nodes

Now that colors aren't uniforms anymore, we don't
win much by using the inset_shadow shader. The fragment
shaders of inset_shadow and border are identical. And
the regular border setup does nine-slicing.

5 years agongl: Small shader improvements
Matthias Clasen [Sat, 13 Mar 2021 23:21:45 +0000 (18:21 -0500)]
ngl: Small shader improvements

Add a variant of gskSetOutputColor that saves a
few multiplications, and use it where possible.

5 years agongl: Improve the coloring shader
Matthias Clasen [Sat, 13 Mar 2021 23:04:26 +0000 (18:04 -0500)]
ngl: Improve the coloring shader

Since we are now passing a float anyway, we can avoid
the branch in the fragment shader.

5 years agongl: Improve the gradient shaders
Matthias Clasen [Sat, 13 Mar 2021 22:54:15 +0000 (17:54 -0500)]
ngl: Improve the gradient shaders

Use a define for MAX_COLOR_STOPS, and give the loop
a fixed limit.

5 years agongl: Rewrite gsk_ngl_render_job_visit_text_node
Matthias Clasen [Sat, 13 Mar 2021 19:36:03 +0000 (14:36 -0500)]
ngl: Rewrite gsk_ngl_render_job_visit_text_node

Make this more compact, and thus easier to read.

5 years agongl: Drop gsk_ngl_render_job_set_color
Matthias Clasen [Sat, 13 Mar 2021 19:29:34 +0000 (14:29 -0500)]
ngl: Drop gsk_ngl_render_job_set_color

Colors are not state that we carry across draw ops,
so setting the color on the render job doesn't make
much sense. Instead, pass the color to the various
draw calls. Add a few new ones for that purpose.

Also, shorten the names of some by going from
'load_vertices_from_offscreen' to 'draw_offscreen'.

5 years agongl: Refactor gsk_ngl_render_job_visit_border_node
Matthias Clasen [Sat, 13 Mar 2021 18:40:04 +0000 (13:40 -0500)]
ngl: Refactor gsk_ngl_render_job_visit_border_node

With color sorting out of the picture, this can
be much simpler.

5 years agongl: Consistently use gsk_scaled_premultiply
Matthias Clasen [Sat, 13 Mar 2021 15:17:34 +0000 (10:17 -0500)]
ngl: Consistently use gsk_scaled_premultiply

Its not going to make much of a difference, but we
can just as well be consistent.

5 years agongl: Fix up uniform enums
Matthias Clasen [Sun, 14 Mar 2021 04:38:54 +0000 (23:38 -0500)]
ngl: Fix up uniform enums

This got messed up when color was changed from
a uniform to an attribute in 06d5c8e72dee3d6339.

5 years agoUpdate Finnish translation
Jiri Grönroos [Sun, 14 Mar 2021 17:02:46 +0000 (17:02 +0000)]
Update Finnish translation

(cherry picked from commit f5a34b53afed6f75a257c21dc52b07592ea76681)

5 years agoUpdate French translation
Guillaume Bernard [Sun, 14 Mar 2021 13:37:57 +0000 (13:37 +0000)]
Update French translation

(cherry picked from commit 21039681d6df9824599d186934aaa53fd4ba722f)

5 years agoUpdate Polish translation
Piotr Drąg [Sun, 14 Mar 2021 12:30:26 +0000 (13:30 +0100)]
Update Polish translation

5 years agoUpdated Czech translation
Marek Černocký [Sun, 14 Mar 2021 08:28:17 +0000 (09:28 +0100)]
Updated Czech translation

5 years agoMerge branch 'gles-coloring' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 22:27:04 +0000 (22:27 +0000)]
Merge branch 'gles-coloring' into 'master'

ngl: Fix the coloring shader on GLES 2.0

See merge request GNOME/gtk!3294

5 years agongl: Fix the coloring shader on GLES 2.0
Emmanuel Gil Peyrot [Sat, 13 Mar 2021 22:00:54 +0000 (22:00 +0000)]
ngl: Fix the coloring shader on GLES 2.0

Integer varyings didn’t exist in GLSL ES 1.00, neither did the flat
attribute.

5 years agoUpdate Norwegian Bokmål translation
Kjartan Maraas [Sat, 13 Mar 2021 16:04:48 +0000 (16:04 +0000)]
Update Norwegian Bokmål translation

(cherry picked from commit 70ee21db71e5b8de0aff406d3d9f1decddebfa09)

5 years agoMerge branch 'ebassi/for-master' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 12:36:56 +0000 (12:36 +0000)]
Merge branch 'ebassi/for-master' into 'master'

docs: Fix the dependencies links

See merge request GNOME/gtk!3284

5 years agoMerge branch 'ngl-textview-cursor' into 'master'
Matthias Clasen [Sat, 13 Mar 2021 12:33:15 +0000 (12:33 +0000)]
Merge branch 'ngl-textview-cursor' into 'master'

Ngl textview cursor

See merge request GNOME/gtk!3292

5 years agotextview: Fix blinking block cursors
Matthias Clasen [Sat, 13 Mar 2021 00:44:31 +0000 (19:44 -0500)]
textview: Fix blinking block cursors

When we have a block cursor, we need to discard the
cached node of the line containing the cursor, in order
to get a blinking cursor.

5 years agotextview: Fix blinking block cursors
Matthias Clasen [Sat, 13 Mar 2021 00:44:31 +0000 (19:44 -0500)]
textview: Fix blinking block cursors

When we have a block cursor, we need to discard the
cached node of the line containing the cursor, in order
to get a blinking cursor.

5 years agotextlayout: Render cursors at the end
Matthias Clasen [Sat, 13 Mar 2021 00:28:36 +0000 (19:28 -0500)]
textlayout: Render cursors at the end

Don't place the insertion cursor render nodes in the
middle of the text nodes for all the text. This helps
the renderer batching the text draw calls together.

5 years agongl: Fix up some debug printouts
Matthias Clasen [Fri, 12 Mar 2021 23:26:15 +0000 (18:26 -0500)]
ngl: Fix up some debug printouts

5 years agoMerge branch 'wip/chergert/fewer-uniforms' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 22:55:00 +0000 (22:55 +0000)]
Merge branch 'wip/chergert/fewer-uniforms' into 'master'

ngl: apply fewer uniforms

See merge request GNOME/gtk!3289

5 years agoMerge branch 'pgriffis/readme-fixes' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 22:51:16 +0000 (22:51 +0000)]
Merge branch 'pgriffis/readme-fixes' into 'master'

readme: Fix broken doc links

See merge request GNOME/gtk!3291

5 years agoreadme: Fix broken doc links
Patrick Griffis [Fri, 12 Mar 2021 22:02:55 +0000 (22:02 +0000)]
readme: Fix broken doc links

5 years agoMerge branch 'ngl-vertex-attributes' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 21:26:52 +0000 (21:26 +0000)]
Merge branch 'ngl-vertex-attributes' into 'master'

Ngl vertex attributes

See merge request GNOME/gtk!3290

5 years agongl: Identify shaders
Matthias Clasen [Fri, 12 Mar 2021 19:25:05 +0000 (14:25 -0500)]
ngl: Identify shaders

Add a comment with a name to each shader. That makes
identifying the shaders in apitrace much easier.

5 years agongl: reintroduce comparison checks
Christian Hergert [Fri, 12 Mar 2021 19:47:15 +0000 (11:47 -0800)]
ngl: reintroduce comparison checks

This reduces how many changes we make when recording uniform state, which
increases the chances that the data offset will be the same when applying
uniforms.

5 years agongl: add front cache to reduce uniform changes
Christian Hergert [Fri, 12 Mar 2021 18:16:52 +0000 (10:16 -0800)]
ngl: add front cache to reduce uniform changes

Since we make full snapshots when recording uniform state of batches, we
need to perform some deduplication to avoid so many repeated uniform calls.

This uses a closed hashtable to determine if we are likely changing the
value to something new.

This does not currently compare values, it instead only compares that we
are going to point at a new offset into the uniform buffer. We could go
further if we compare upon updating values (we did that early on in the
prototype) so that offsets are less likely to be changed.

5 years agogtk-demo: Add a test for scrolling with Emoji
Matthias Clasen [Fri, 12 Mar 2021 06:44:05 +0000 (01:44 -0500)]
gtk-demo: Add a test for scrolling with Emoji

Make a text with lots of Emoji and text. This
is exercising the GL renderers switching between
different shaders for color and plain glyphs.

5 years agongl: Make the coloring shader more versatile
Matthias Clasen [Fri, 12 Mar 2021 06:27:19 +0000 (01:27 -0500)]
ngl: Make the coloring shader more versatile

When the color passed is transparent black, use
the color from the texture as source, instead of
as mask. This lets use use the coloring program
both for regular and color glyphs, avoiding
program changes in text with Emoji.

5 years agongl: Set color as vertex attribute
Matthias Clasen [Fri, 12 Mar 2021 00:46:15 +0000 (19:46 -0500)]
ngl: Set color as vertex attribute

Instead of using uniforms for color used in multiple
programs, pass it as vertex attributes. This will let
us batch more draw calls, since we don't have to change
uniforms so often. In particular, for syntax-highlighted
text.

5 years agogsk: Give ngl its own shader sources
Matthias Clasen [Fri, 12 Mar 2021 02:31:31 +0000 (21:31 -0500)]
gsk: Give ngl its own shader sources

We may want to change the interface between the
shaders and the renderer for ngl, and therefore,
sharing the shaders between gl and ngl will not
be practical, going forward.

5 years agoMerge branch 'fix-3704' into 'master'
Matthias Clasen [Fri, 12 Mar 2021 14:06:33 +0000 (14:06 +0000)]
Merge branch 'fix-3704' into 'master'

gdksurface-win32.c: Fix window menu positioning (issue #3704)

Closes #3704

See merge request GNOME/gtk!3286

5 years agobuild: Install the API references
Emmanuele Bassi [Fri, 12 Mar 2021 11:13:54 +0000 (11:13 +0000)]
build: Install the API references

We are building them, but not installing them.

5 years agodocs: Fix the dependencies links
Emmanuele Bassi [Thu, 11 Mar 2021 17:36:36 +0000 (17:36 +0000)]
docs: Fix the dependencies links

Use the GitLab pages location until we can link to a proper space on
developer.gnome.org.

5 years agogdksurface-win32.c: Fix window menu positioning
Chun-wei Fan [Fri, 12 Mar 2021 10:39:04 +0000 (18:39 +0800)]
gdksurface-win32.c: Fix window menu positioning

We ought to get the coordinates of where the window menu should be
displayed using gdk_win32_surface_get_root_coords(), instead of rounding
the position that we obtained with gdk_event_get_position().

Also rename items a bit in the same function, and call
gdk_event_get_event_type() for consistency with the other backends.

Fixes issue #3704.

5 years agoUpdate Korean translation
Changwoo Ryu [Fri, 12 Mar 2021 08:50:28 +0000 (08:50 +0000)]
Update Korean translation

(cherry picked from commit 7774d5d85e86f97d9ef7195c808bcd2d88ef49eb)

5 years agoMerge branch 'bilelmoussaoui/shortcuts-annotation' into 'master'
Emmanuele Bassi [Thu, 11 Mar 2021 18:40:32 +0000 (18:40 +0000)]
Merge branch 'bilelmoussaoui/shortcuts-annotation' into 'master'

g-i: fix gtk_shortcut_label_new annotation

See merge request GNOME/gtk!3285

5 years agog-i: fix gtk_shortcut_label_new annotation
Bilal Elmoussaoui [Thu, 11 Mar 2021 18:21:56 +0000 (18:21 +0000)]
g-i: fix gtk_shortcut_label_new annotation

5 years agoMerge branch 'ebassi/gidocgen' into 'master'
Emmanuele Bassi [Thu, 11 Mar 2021 17:11:57 +0000 (17:11 +0000)]
Merge branch 'ebassi/gidocgen' into 'master'

Move API reference to gi-docgen

See merge request GNOME/gtk!3222

5 years agodocs: Add URL maps for cross links
Emmanuele Bassi [Thu, 11 Mar 2021 16:46:02 +0000 (16:46 +0000)]
docs: Add URL maps for cross links

5 years agodocs: Enable search
Emmanuele Bassi [Thu, 11 Mar 2021 16:36:48 +0000 (16:36 +0000)]
docs: Enable search

5 years agodocs: Update the "running GTK apps" section
Emmanuele Bassi [Mon, 8 Mar 2021 17:58:14 +0000 (17:58 +0000)]
docs: Update the "running GTK apps" section

Style the content a bit better, and use the appropriate links.

5 years agoSmall updates to the coding and documentation style
Matthias Clasen [Fri, 5 Mar 2021 17:44:41 +0000 (12:44 -0500)]
Small updates to the coding and documentation style

Mention summary sentences, and a few other things.

5 years agobuild: Add missing variable definition
Emmanuele Bassi [Fri, 5 Mar 2021 16:44:17 +0000 (16:44 +0000)]
build: Add missing variable definition

5 years agobuild: Add a GIR dependency to PangoCairo
Emmanuele Bassi [Fri, 5 Mar 2021 14:37:31 +0000 (14:37 +0000)]
build: Add a GIR dependency to PangoCairo

This is not strictly needed from an introspection perspective, but:

 - GTK strictly depends on PangoCairo internally
 - we want to integrate the GDK docs with PangoCairo's

So even though we don't have an explicit dependency on PangoCairo types
in our ABI, we do assume that people will be able to use the PangoCairo
API with GTK.

5 years agoHandle static inline GtkOrdering function
Emmanuele Bassi [Thu, 4 Mar 2021 22:58:05 +0000 (22:58 +0000)]
Handle static inline GtkOrdering function

The introspection scanner does not handle `static inline` functions:
they are not in the shared library, so cannot be dlsym() out of it; and
the `static` keyword tells g-ir-scanner to skip the function declaration
entirely.

We can trick the scanner into thinking the gtk_ordering_from_cmpfunc()
symbol is a real, public one, by declaring and defining a regular
function under the `__GI_SCANNER__` guard; the symbol does not appear
when actually building GTK, or any code using GTK, so we don't risk
collisions.

5 years agodocs: Show class hierarchy in the API references
Emmanuele Bassi [Thu, 4 Mar 2021 17:42:59 +0000 (17:42 +0000)]
docs: Show class hierarchy in the API references

5 years agolabel: Fix some external links
Matthias Clasen [Tue, 2 Mar 2021 16:09:28 +0000 (11:09 -0500)]
label: Fix some external links

I had put in a bunch of [class@Pango.Attribute],
but it needs to be [struct@Pango.Attribute].

Know your dependencies` type hierarchy!

5 years agotext: Fix some copy-paste mishap
Matthias Clasen [Tue, 2 Mar 2021 16:08:13 +0000 (11:08 -0500)]
text: Fix some copy-paste mishap

A bunch of occurrances of "the self" looked like
absurdist short fiction:

"...the self scrolled off the screen to the left"

5 years agowidget: Fix up some links
Matthias Clasen [Tue, 2 Mar 2021 04:41:04 +0000 (23:41 -0500)]
widget: Fix up some links

Fix up some links to vfuncs and to sections, as well as class methods.

5 years agoshortcuttrigger: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:48 +0000 (22:54 -0500)]
shortcuttrigger: Convert docs

5 years agoshortcutlabel: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:37 +0000 (22:54 -0500)]
shortcutlabel: Convert docs

5 years agoshortcutcontroller: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:23 +0000 (22:54 -0500)]
shortcutcontroller: Convert docs

5 years agoshortcutaction: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:54:11 +0000 (22:54 -0500)]
shortcutaction: Convert docs

5 years agoshortcut: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:57 +0000 (22:53 -0500)]
shortcut: Convert docs

5 years agosizegroup: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:47 +0000 (22:53 -0500)]
sizegroup: Convert docs

5 years agotestutils: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:25 +0000 (22:53 -0500)]
testutils: Convert docs

5 years agosnapshot: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:53:00 +0000 (22:53 -0500)]
snapshot: Convert docs

5 years agotooltip: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:48 +0000 (22:52 -0500)]
tooltip: Convert docs

5 years agosettings: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:39 +0000 (22:52 -0500)]
settings: Convert docs

5 years agorecentmanager: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:30 +0000 (22:52 -0500)]
recentmanager: Convert docs

5 years agomountoperation: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:52:20 +0000 (22:52 -0500)]
mountoperation: Convert docs

5 years agomenutrackeritem: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:51:55 +0000 (22:51 -0500)]
menutrackeritem: Remove SECTION

This is private

5 years agomenutracker: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:51:38 +0000 (22:51 -0500)]
menutracker: Remove SECTION

This is private.

5 years agotreesortable: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:51:03 +0000 (22:51 -0500)]
treesortable: Add a summary

5 years agotreeselection: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:53 +0000 (22:50 -0500)]
treeselection: Add a summary

5 years agotreemodelsort: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:40 +0000 (22:50 -0500)]
treemodelsort: Add a summary

5 years agotreemodelfilter: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:27 +0000 (22:50 -0500)]
treemodelfilter: Add a summary

5 years agotreemodel: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:50:14 +0000 (22:50 -0500)]
treemodel: Add a summary

5 years agotreednd: Add summaries
Matthias Clasen [Tue, 2 Mar 2021 03:49:59 +0000 (22:49 -0500)]
treednd: Add summaries

5 years agotreestore: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:47 +0000 (22:49 -0500)]
treestore: Add a summary

5 years agoliststore: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:33 +0000 (22:49 -0500)]
liststore: Add a summary

5 years agotreeviewcolumn: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:19 +0000 (22:49 -0500)]
treeviewcolumn: Add a summary

5 years agotreeview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:49:09 +0000 (22:49 -0500)]
treeview: Add a summary

5 years agowindowgroup: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:48:08 +0000 (22:48 -0500)]
windowgroup: Convert docs

5 years agolistbox: Convert docs
Matthias Clasen [Tue, 2 Mar 2021 03:47:51 +0000 (22:47 -0500)]
listbox: Convert docs

5 years agoiconview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:47:38 +0000 (22:47 -0500)]
iconview: Add a summary

5 years agoconstraintsolver: Remove SECTION
Matthias Clasen [Tue, 2 Mar 2021 03:47:23 +0000 (22:47 -0500)]
constraintsolver: Remove SECTION

This is private

5 years agocellview: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:47:07 +0000 (22:47 -0500)]
cellview: Add a summary

5 years agocellrenderertoggle: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:39:20 +0000 (22:39 -0500)]
cellrenderertoggle: Add a summary

5 years agocellrenderertext: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:39:06 +0000 (22:39 -0500)]
cellrenderertext: Add a summary

5 years agocellrendererspinner: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:49 +0000 (22:38 -0500)]
cellrendererspinner: Add a summary

5 years agocellrendererspin: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:34 +0000 (22:38 -0500)]
cellrendererspin: Add a summary

5 years agocellrendererprogress: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:20 +0000 (22:38 -0500)]
cellrendererprogress: Add a summary

5 years agocellrendererpixbuf: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:38:04 +0000 (22:38 -0500)]
cellrendererpixbuf: Add a summary

5 years agocelleditable: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:52 +0000 (22:37 -0500)]
celleditable: Add a summary

5 years agocellrenderercombo: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:23 +0000 (22:37 -0500)]
cellrenderercombo: Add a summary

5 years agocellrendereraccel: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:37:04 +0000 (22:37 -0500)]
cellrendereraccel: Add a summary

5 years agocellrenderer: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:49 +0000 (22:36 -0500)]
cellrenderer: Add a summary

5 years agocelllayout: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:37 +0000 (22:36 -0500)]
celllayout: Add a summary

5 years agocellareacontext: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:26 +0000 (22:36 -0500)]
cellareacontext: Add a summary

5 years agocellareabox: Add a summary
Matthias Clasen [Tue, 2 Mar 2021 03:36:08 +0000 (22:36 -0500)]
cellareabox: Add a summary